angular.module('app').controller('adviceCtrl', 
['$scope', '$rootScope', 'stateV', 'http','$state',
function($scope, $rootScope,stateV,http,$state) 
{
	$rootScope.header = false;
	$scope.plat = {content:''}

	$scope.add = function(){
		if($scope.plat.content.trim()==''){
			alert("内容不能为空")
		}
		var url = globalConfig.web + "/plat/addadvice";
		http.post(url, $scope.plat, function(data, status){
			if(status==200){
				alert("提交成功")
			}else if(status==403){
				alert("内容不能为空")
			}
		})
	}

}]);